<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: usbc_device.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">usbc_device.h</div>  </div>
</div>
<div class="contents">
<a href="usbc__device_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _USBC_DEVICE_H_</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define _USBC_DEVICE_H_</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="compiler_8h.html" title="Compiler file for AVR32.">compiler.h</a>&quot;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &quot;<a class="code" href="preprocessor_8h.html" title="Preprocessor utils.">preprocessor.h</a>&quot;</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 
<a name="l00054"></a>00054 
<a name="l00059"></a><a class="code" href="group__udd__group.html#ga4f3fc518ef0e369cc01a7bf7c6516844">00059</a> <span class="preprocessor">#define  UDD_get_endpoint_max_nbr()          (((Rd_bitfield(AVR32_USBC_ufeatures, AVR32_USBC_UFEATURES_EPT_NBR_MAX_MASK) - 1) &amp; ((1 &lt;&lt; AVR32_USBC_UFEATURES_EPT_NBR_MAX_SIZE) - 1)) + 1)</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00061"></a>00061 
<a name="l00065"></a><a class="code" href="group__udd__group.html#gaf272a0d4210ee260d0a267bba460fb0c">00065</a> <span class="preprocessor">#define  udd_low_speed_enable()              (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_LS_MASK))</span>
<a name="l00066"></a><a class="code" href="group__udd__group.html#ga6471bbaea371bb9bb2654333236c9f29">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_low_speed_disable()             (Clr_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_LS_MASK))</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00068"></a><a class="code" href="group__udd__group.html#gaedea021600d07a71a1672b393c550c39">00068</a> <span class="preprocessor">#define  Is_udd_low_speed_enable()           (Tst_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_LS_MASK))</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="preprocessor">#ifdef AVR32_USBC_UDCON_SPDCONF</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00072"></a>00072 <span class="preprocessor">#  define   udd_high_speed_enable()          (Wr_bitfield(AVR32_USBC.udcon, AVR32_USBC_UDCON_SPDCONF_MASK, 0))</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00074"></a>00074 <span class="preprocessor">#  define   udd_high_speed_disable()         (Wr_bitfield(AVR32_USBC.udcon, AVR32_USBC_UDCON_SPDCONF_MASK, 3))</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00076"></a>00076 <span class="preprocessor">#  define   Is_udd_full_speed_mode()         (Rd_bitfield(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_SPEED_MASK) == AVR32_USBC_USBSTA_SPEED_FULL)</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00078"></a><a class="code" href="group__udd__group.html#gae014bb3adcdf212fd61196307be88802">00078</a> <span class="preprocessor"></span><span class="preprocessor">#  define   udd_high_speed_enable()          do { } while (0)</span>
<a name="l00079"></a><a class="code" href="group__udd__group.html#ga7adf42a2ec72e7f2429a9b02799333af">00079</a> <span class="preprocessor"></span><span class="preprocessor">#  define   udd_high_speed_disable()         do { } while (0)</span>
<a name="l00080"></a><a class="code" href="group__udd__group.html#ga977c78f164f32fa910802518aab7b0ed">00080</a> <span class="preprocessor"></span><span class="preprocessor">#  define   Is_udd_full_speed_mode()         true</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span>
<a name="l00083"></a>00083 
<a name="l00086"></a>00086 <span class="preprocessor">#ifdef AVR32_USBC_UDCON_SPDCONF</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>
<a name="l00088"></a>00088 <span class="preprocessor">#  define   udd_enable_hs_test_mode()        (Wr_bitfield(AVR32_USBC.udcon, AVR32_USBC_UDCON_SPDCONF_MASK, 2))</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#  define   udd_enable_hs_test_mode_j()      (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_TSTJ_MASK))</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#  define   udd_enable_hs_test_mode_k()      (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_TSTK_MASK))</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#  define   udd_enable_hs_test_mode_packet() (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_TSTPCKT_MASK))</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a>00094 
<a name="l00097"></a><a class="code" href="group__udd__group.html#gaf80c5f873a9d926ab3324b6a91dfd872">00097</a> <span class="preprocessor">#define  udd_enable_vbus_interrupt()         (Set_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_VBUSTE_MASK))</span>
<a name="l00098"></a><a class="code" href="group__udd__group.html#gad11887e29c08ad9cc6d67e3e6b4f9e9a">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_vbus_interrupt()        (Clr_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_VBUSTE_MASK))</span>
<a name="l00099"></a><a class="code" href="group__udd__group.html#gaed8ac44b2b2082c1797e873e120867c8">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_vbus_interrupt_enabled()     (Tst_bits(AVR32_USBC.usbcon, AVR32_USBC_USBCON_VBUSTE_MASK))</span>
<a name="l00100"></a><a class="code" href="group__udd__group.html#ga10bc6d84d73e1ecccae3318d4098c41a">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_vbus_high()                  (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_VBUS_MASK))</span>
<a name="l00101"></a><a class="code" href="group__udd__group.html#ga6f962d911e1863d143614d1ee01df89a">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_vbus_low()                   (!Is_udd_vbus_high())</span>
<a name="l00102"></a><a class="code" href="group__udd__group.html#gac6886b5956566ddb81744bbcfb27c08d">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_vbus_transition()           (AVR32_USBC.usbstaclr = AVR32_USBC_USBSTACLR_VBUSTIC_MASK)</span>
<a name="l00103"></a><a class="code" href="group__udd__group.html#ga8761342ea2dc32e0f0252508b1f7c47a">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_vbus_transition()         (AVR32_USBC.usbstaset = AVR32_USBC_USBSTASET_VBUSTIS_MASK)</span>
<a name="l00104"></a><a class="code" href="group__udd__group.html#gafb6dd005e6fef2574f054b8fe5e8d008">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_vbus_transition()            (Tst_bits(AVR32_USBC.usbsta, AVR32_USBC_USBSTA_VBUSTI_MASK))</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 
<a name="l00112"></a><a class="code" href="group__udd__group.html#ga1863dacf593fb3c1b5f275b48f1e529a">00112</a> <span class="preprocessor">#define  udd_detach_device()                 (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_DETACH_MASK))</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>
<a name="l00114"></a><a class="code" href="group__udd__group.html#ga55686d13fc7b23f4945f527f0dd15906">00114</a> <span class="preprocessor">#define  udd_attach_device()                 (Clr_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_DETACH_MASK))</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00116"></a><a class="code" href="group__udd__group.html#gaf8c45e04066c136079dd296c2e28bb62">00116</a> <span class="preprocessor">#define  Is_udd_detached()                   (Tst_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_DETACH_MASK))</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span>
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 
<a name="l00123"></a>00123 
<a name="l00126"></a><a class="code" href="group__udd__group.html#gacc4b62140d09930dd38b10f766d30517">00126</a> <span class="preprocessor">#define  udd_initiate_remote_wake_up()       (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_RMWKUP_MASK))</span>
<a name="l00127"></a><a class="code" href="group__udd__group.html#gaf3dab5078ad3286ac92d7b3a8cf8933a">00127</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_pending_remote_wake_up()     (Tst_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_RMWKUP_MASK))</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00129"></a>00129 
<a name="l00133"></a><a class="code" href="group__udd__group.html#ga0f538482266ca447cbfcfb9a5eb2bd64">00133</a> <span class="preprocessor">#define  udd_enable_remote_wake_up_interrupt()     (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_UPRSMES_MASK)</span>
<a name="l00134"></a><a class="code" href="group__udd__group.html#gad53f9dce1280a2b17218090cde573368">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_remote_wake_up_interrupt()    (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_UPRSMEC_MASK)</span>
<a name="l00135"></a><a class="code" href="group__udd__group.html#ga2a4c5935ae7ae26e8edf63a27d3d30d9">00135</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_remote_wake_up_interrupt_enabled() (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_UPRSME_MASK))</span>
<a name="l00136"></a><a class="code" href="group__udd__group.html#ga39c4b005d3194988c8969ea622eed23d">00136</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_remote_wake_up_start()            (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_UPRSMC_MASK)</span>
<a name="l00137"></a><a class="code" href="group__udd__group.html#ga8e9d45e299d7a26b65bf8a98c8e27546">00137</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_remote_wake_up_start()          (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_UPRSMS_MASK)</span>
<a name="l00138"></a><a class="code" href="group__udd__group.html#gacfe73866ea62b418fe69fa061ef6edd3">00138</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_remote_wake_up_start()             (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_UPRSM_MASK))</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span>
<a name="l00140"></a>00140 
<a name="l00144"></a><a class="code" href="group__udd__group.html#gad7f806ed3fbecb776acc5dcedcf81f3e">00144</a> <span class="preprocessor">#define  udd_enable_resume_interrupt()             (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_EORSMES_MASK)</span>
<a name="l00145"></a><a class="code" href="group__udd__group.html#ga8a97ab6519a34ae7d9135fe70c6719e4">00145</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_resume_interrupt()            (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_EORSMEC_MASK)</span>
<a name="l00146"></a><a class="code" href="group__udd__group.html#ga3cad513921d4190558aa7744d672bfc3">00146</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_resume_interrupt_enabled()         (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_EORSME_MASK))</span>
<a name="l00147"></a><a class="code" href="group__udd__group.html#gabc25572243c4ab4600a1a870b4b6028b">00147</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_resume()                          (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_EORSMC_MASK)</span>
<a name="l00148"></a><a class="code" href="group__udd__group.html#ga32a47c6752a2cac56874691e34728ba5">00148</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_resume()                        (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_EORSMS_MASK)</span>
<a name="l00149"></a><a class="code" href="group__udd__group.html#ga1b2ed8acdccb1fa2d295610349979fe5">00149</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_resume()                           (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_EORSM_MASK))</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>
<a name="l00151"></a>00151 
<a name="l00155"></a><a class="code" href="group__udd__group.html#ga1b192f6b945ae10b536deca002c2a1aa">00155</a> <span class="preprocessor">#define  udd_enable_wake_up_interrupt()            (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_WAKEUPES_MASK)</span>
<a name="l00156"></a><a class="code" href="group__udd__group.html#gaeac784d6d727d949449042d979d9a2ff">00156</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_wake_up_interrupt()           (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_WAKEUPEC_MASK)</span>
<a name="l00157"></a><a class="code" href="group__udd__group.html#gaeab0126ceda728b5e100675a1368219a">00157</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_wake_up_interrupt_enabled()        (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_WAKEUPE_MASK))</span>
<a name="l00158"></a><a class="code" href="group__udd__group.html#gadf64e48ecbcfc8082ac438156d43311d">00158</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_wake_up()                         (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_WAKEUPC_MASK)</span>
<a name="l00159"></a><a class="code" href="group__udd__group.html#ga6b5a8ee09140c447b077c66c2e7668fe">00159</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_wake_up()                       (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_WAKEUPS_MASK)</span>
<a name="l00160"></a><a class="code" href="group__udd__group.html#ga27099aac5c46e62ca82775e957ae52a4">00160</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_wake_up()                          (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_WAKEUP_MASK))</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span>
<a name="l00162"></a>00162 
<a name="l00166"></a><a class="code" href="group__udd__group.html#gaa4f338d7c02eb47691d55ea26a0b32d7">00166</a> <span class="preprocessor">#define  udd_enable_reset_interrupt()              (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_EORSTES_MASK)</span>
<a name="l00167"></a><a class="code" href="group__udd__group.html#ga4f19c394e2352deb16c13e15c34c59ff">00167</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_reset_interrupt()             (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_EORSTEC_MASK)</span>
<a name="l00168"></a><a class="code" href="group__udd__group.html#gae0697533a9d3b806351a6a075100dd9f">00168</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_reset_interrupt_enabled()          (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_EORSTE_MASK))</span>
<a name="l00169"></a><a class="code" href="group__udd__group.html#gae28a4338a4679d081090a536f7bd3ee1">00169</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_reset()                           (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_EORSTC_MASK)</span>
<a name="l00170"></a><a class="code" href="group__udd__group.html#ga6c25f895374748a59eaa9a84356a5d58">00170</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_reset()                         (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_EORSTS_MASK)</span>
<a name="l00171"></a><a class="code" href="group__udd__group.html#ga8bcb98dbb6f1255a0f25ae73035927db">00171</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_reset()                            (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_EORST_MASK))</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span>
<a name="l00173"></a>00173 
<a name="l00176"></a><a class="code" href="group__udd__group.html#ga307066f7fb27b90020e50f7311b37ff6">00176</a> <span class="preprocessor">#define  udd_enable_sof_interrupt()                (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_SOFES_MASK)</span>
<a name="l00177"></a><a class="code" href="group__udd__group.html#ga1210d31d31bcbcaf8374ac4db1521306">00177</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_sof_interrupt()               (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_SOFEC_MASK)</span>
<a name="l00178"></a><a class="code" href="group__udd__group.html#gacc090cdf3bd05a4da6888695fd95786b">00178</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_sof_interrupt_enabled()            (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_SOFE_MASK))</span>
<a name="l00179"></a><a class="code" href="group__udd__group.html#ga0b4140471f2e53d93cfe7f05ebd907d7">00179</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_sof()                             (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_SOFC_MASK)</span>
<a name="l00180"></a><a class="code" href="group__udd__group.html#ga3747765066014e9bbde1bb263334c8a0">00180</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_sof()                           (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_SOFS_MASK)</span>
<a name="l00181"></a><a class="code" href="group__udd__group.html#ga5b5fcaa7cfa64de404ff9a3a257839a9">00181</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_sof()                              (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_SOF_MASK))</span>
<a name="l00182"></a><a class="code" href="group__udd__group.html#gac175ccc890008605691939957098a246">00182</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_frame_number()                        (Rd_bitfield(AVR32_USBC.udfnum, AVR32_USBC_UDFNUM_FNUM_MASK))</span>
<a name="l00183"></a><a class="code" href="group__udd__group.html#ga6f519fdc7583b259eb11d33555813182">00183</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_frame_number_crc_error()           (Tst_bits(AVR32_USBC.udfnum, AVR32_USBC_UDFNUM_FNCERR_MASK))</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a>00185 
<a name="l00188"></a><a class="code" href="group__udd__group.html#ga298cc43d16d7d9609d58adffe696b5db">00188</a> <span class="preprocessor">#define  udd_enable_suspend_interrupt()            (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_SUSPES_MASK)</span>
<a name="l00189"></a><a class="code" href="group__udd__group.html#ga1470fba0dbc68e890140d806277ee8c1">00189</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_disable_suspend_interrupt()           (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_SUSPEC_MASK)</span>
<a name="l00190"></a><a class="code" href="group__udd__group.html#ga2a9c882005f263ea9e181273bf316e27">00190</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_suspend_interrupt_enabled()        (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_SUSPE_MASK))</span>
<a name="l00191"></a><a class="code" href="group__udd__group.html#ga9a61b0228571cf2c0225c86f3e3a618e">00191</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_ack_suspend()                         (AVR32_USBC.udintclr = AVR32_USBC_UDINTCLR_SUSPC_MASK)</span>
<a name="l00192"></a><a class="code" href="group__udd__group.html#ga997d9f1f31efd62ddcce775a4f40a0bd">00192</a> <span class="preprocessor"></span><span class="preprocessor">#define  udd_raise_suspend()                       (AVR32_USBC.udintset = AVR32_USBC_UDINTSET_SUSPS_MASK)</span>
<a name="l00193"></a><a class="code" href="group__udd__group.html#gadfe9e8bbc2b3afefb19bcfd99db8b3fd">00193</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_suspend()                          (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_SUSP_MASK))</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a>00195 
<a name="l00197"></a>00197 
<a name="l00202"></a><a class="code" href="usbc__device_8h.html#a45ad65d26b8b1c07d438d6a953356adc">00202</a> <span class="preprocessor">#define  udd_enable_address()                      (Set_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_ADDEN_MASK))</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span>
<a name="l00204"></a><a class="code" href="usbc__device_8h.html#a21a5e9eb44ea5fd15eb4e9c7603e77c6">00204</a> <span class="preprocessor">#define  udd_disable_address()                     (Clr_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_ADDEN_MASK))</span>
<a name="l00205"></a><a class="code" href="usbc__device_8h.html#a745c69fca49259a55f097b89be266d9d">00205</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_address_enabled()                  (Tst_bits(AVR32_USBC.udcon, AVR32_USBC_UDCON_ADDEN_MASK))</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span>
<a name="l00207"></a><a class="code" href="usbc__device_8h.html#a5c6819ba3af1c84a7d7d33f059678e24">00207</a> <span class="preprocessor">#define  udd_configure_address(addr)               (Wr_bitfield(AVR32_USBC.udcon, AVR32_USBC_UDCON_UADD_MASK, addr))</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span>
<a name="l00209"></a><a class="code" href="usbc__device_8h.html#a7abf42f819560e7da3b51d0ab6b73c33">00209</a> <span class="preprocessor">#define  udd_get_configured_address()              (Rd_bitfield(AVR32_USBC.udcon, AVR32_USBC_UDCON_UADD_MASK))</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 
<a name="l00216"></a>00216 
<a name="l00219"></a><a class="code" href="usbc__device_8h.html#a944621405e4cada2a5758a20c890cc73">00219</a> <span class="preprocessor">#define USBC_ARRAY(reg,index)              ((&amp;AVR32_USBC.reg)[(index)])</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span>
<a name="l00221"></a>00221 
<a name="l00225"></a><a class="code" href="usbc__device_8h.html#ad03d0e3d03b41ad352bcfb1e20618cf3">00225</a> <span class="preprocessor">#define  udd_enable_endpoint(ep)                   (Set_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPEN0_MASK &lt;&lt; (ep)))</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>
<a name="l00227"></a><a class="code" href="usbc__device_8h.html#a78448032b7215b5c3168c2219609f439">00227</a> <span class="preprocessor">#define  udd_disable_endpoint(ep)                  (Clr_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPEN0_MASK &lt;&lt; (ep)))</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span>
<a name="l00229"></a><a class="code" href="usbc__device_8h.html#afe6904680ed0cc545a96efa2ca0d1a43">00229</a> <span class="preprocessor">#define  Is_udd_endpoint_enabled(ep)               (Tst_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPEN0_MASK &lt;&lt; (ep)))</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span>
<a name="l00231"></a><a class="code" href="usbc__device_8h.html#ad104658f522a2947eac3ea93ec460ca9">00231</a> <span class="preprocessor">#define  udd_reset_endpoint(ep)                    (Set_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPRST0_MASK &lt;&lt; (ep)),\</span>
<a name="l00232"></a>00232 <span class="preprocessor">                                                   Clr_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPRST0_MASK &lt;&lt; (ep)))</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>
<a name="l00234"></a><a class="code" href="usbc__device_8h.html#a73bc67a85520896969c812e3002b565e">00234</a> <span class="preprocessor">#define  Is_udd_resetting_endpoint(ep)             (Tst_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPRST0_MASK &lt;&lt; (ep)))</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span>
<a name="l00237"></a><a class="code" href="usbc__device_8h.html#a6cb296a52400f97a43b55679e95f0d1c">00237</a> <span class="preprocessor">#define  udd_configure_endpoint_type(ep, type)     (Wr_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPTYPE_MASK, type))</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span>
<a name="l00239"></a><a class="code" href="usbc__device_8h.html#a9038cc39fe44400c771b159f3ffe19e7">00239</a> <span class="preprocessor">#define  udd_get_endpoint_type(ep)                 ((Rd_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPTYPE_MASK))&gt;&gt;AVR32_USBC_UECFG0_EPTYPE_OFFSET)</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span>
<a name="l00241"></a>00241 <span class="comment">//#define  udd_enable_endpoint_bank_autoswitch(ep)   (Set_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_AUTOSW_MASK))</span>
<a name="l00243"></a>00243 <span class="comment"></span><span class="comment">//#define  udd_disable_endpoint_bank_autoswitch(ep)   (Clr_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_AUTOSW_MASK))</span>
<a name="l00244"></a>00244 <span class="comment">//#define  Is_udd_endpoint_bank_autoswitch_enabled(ep) (Tst_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_AUTOSW_MASK))</span>
<a name="l00246"></a><a class="code" href="usbc__device_8h.html#adf9bd49f7579a94166a10c4c6645f5de">00246</a> <span class="comment"></span><span class="preprocessor">#define  udd_configure_endpoint_direction(ep, dir) (Wr_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPDIR_MASK, dir))</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span>
<a name="l00248"></a><a class="code" href="usbc__device_8h.html#a1e9ebc6e500cfa654b2da58c235f1464">00248</a> <span class="preprocessor">#define  udd_get_endpoint_direction(ep)            (Rd_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPDIR_MASK))</span>
<a name="l00249"></a><a class="code" href="usbc__device_8h.html#ae9f80db7ea2439ef1fd11eaf0edceb91">00249</a> <span class="preprocessor"></span><span class="preprocessor">#define  Is_udd_endpoint_in(ep)                    (Tst_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPDIR_MASK))</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>
<a name="l00251"></a>00251 
<a name="l00252"></a>00252 
<a name="l00253"></a><a class="code" href="usbc__device_8h.html#a9fc78147cab52be8b840973ef29d0076">00253</a> <span class="preprocessor">#define  udd_format_endpoint_size(size)            (32 - clz(((uint32_t)min(max(size, 8), 1024) &lt;&lt; 1) - 1) - 1 - 3)</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a><a class="code" href="usbc__device_8h.html#aed35d93ac28f5309919a8c6988baee47">00255</a> <span class="preprocessor">#define  udd_configure_endpoint_size(ep, size)     (Wr_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPSIZE_MASK, udd_format_endpoint_size(size)))</span>
<a name="l00256"></a>00256 <span class="preprocessor"></span>
<a name="l00257"></a><a class="code" href="usbc__device_8h.html#a16fa9454335f40118cc84efaa229c002">00257</a> <span class="preprocessor">#define  udd_get_endpoint_size(ep)                 (8 &lt;&lt; Rd_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPSIZE_MASK))</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>
<a name="l00259"></a><a class="code" href="usbc__device_8h.html#a5256fbd33ecb07fd5c1651f26d1b0313">00259</a> <span class="preprocessor">#define  udd_configure_endpoint_bank(ep, bank)     (Wr_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPBK_MASK, bank))</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span>
<a name="l00261"></a><a class="code" href="usbc__device_8h.html#abfae08b406c33eff07a328c0a1bf9f48">00261</a> <span class="preprocessor">#define  udd_get_endpoint_bank(ep)                 (Rd_bitfield(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPBK_MASK))</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span>
<a name="l00264"></a><a class="code" href="usbc__device_8h.html#ab0dd6d762bb7c07b3c085bfa77d7094a">00264</a> <span class="preprocessor">#define  udd_configure_endpoint(ep, type, dir, size, bank) \</span>
<a name="l00265"></a>00265 <span class="preprocessor">(\</span>
<a name="l00266"></a>00266 <span class="preprocessor">   Wr_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPTYPE_MASK |\</span>
<a name="l00267"></a>00267 <span class="preprocessor">                                  AVR32_USBC_UECFG0_EPDIR_MASK  |\</span>
<a name="l00268"></a>00268 <span class="preprocessor">                                  AVR32_USBC_UECFG0_EPSIZE_MASK |\</span>
<a name="l00269"></a>00269 <span class="preprocessor">                                  AVR32_USBC_UECFG0_EPBK_MASK,   \</span>
<a name="l00270"></a>00270 <span class="preprocessor">            (((uint32_t)(type) &lt;&lt; AVR32_USBC_UECFG0_EPTYPE_OFFSET) &amp; AVR32_USBC_UECFG0_EPTYPE_MASK) |\</span>
<a name="l00271"></a>00271 <span class="preprocessor">            (((uint32_t)(dir ) &lt;&lt; AVR32_USBC_UECFG0_EPDIR_OFFSET ) &amp; AVR32_USBC_UECFG0_EPDIR_MASK ) |\</span>
<a name="l00272"></a>00272 <span class="preprocessor">            ( (uint32_t)udd_format_endpoint_size(size) &lt;&lt; AVR32_USBC_UECFG0_EPSIZE_OFFSET         ) |\</span>
<a name="l00273"></a>00273 <span class="preprocessor">            (((uint32_t)(bank) &lt;&lt; AVR32_USBC_UECFG0_EPBK_OFFSET  ) &amp; AVR32_USBC_UECFG0_EPBK_MASK  ))\</span>
<a name="l00274"></a>00274 <span class="preprocessor">)</span>
<a name="l00275"></a>00275 <span class="preprocessor"></span>
<a name="l00276"></a><a class="code" href="usbc__device_8h.html#ab535c15be47ca7b41b9af4fcc01cdc71">00276</a> <span class="preprocessor">#define  udd_control_direction()                   (Rd_bitfield(USBC_ARRAY(uesta0(EP_CONTROL), AVR32_USBC_UESTA0_CTRLDIR_MASK))</span>
<a name="l00277"></a>00277 <span class="preprocessor"></span>
<a name="l00279"></a><a class="code" href="usbc__device_8h.html#af8215756ce1ffa8c2ae43bd44cd1b5ca">00279</a> <span class="preprocessor">#define  udd_reset_data_toggle(ep)                 (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_RSTDTS_MASK)</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span>
<a name="l00281"></a><a class="code" href="usbc__device_8h.html#aee6c06d0d3f8abf8cb14b4948782e6dd">00281</a> <span class="preprocessor">#define  Is_udd_data_toggle_reset(ep)              (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_RSTDT_MASK))</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span>
<a name="l00283"></a><a class="code" href="usbc__device_8h.html#abed983b720337e2ed5884d78e4519948">00283</a> <span class="preprocessor">#define  udd_data_toggle(ep)                       (Rd_bitfield(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_DTSEQ_MASK))</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a>00285 
<a name="l00286"></a>00286 
<a name="l00290"></a>00290 
<a name="l00295"></a><a class="code" href="usbc__device_8h.html#afeee27d730e49f7182fb7e1b40649947">00295</a> <span class="preprocessor">#define  udd_enable_endpoint_interrupt(ep)         (AVR32_USBC.udinteset = AVR32_USBC_UDINTESET_EP0INTES_MASK &lt;&lt; (ep))</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>
<a name="l00297"></a><a class="code" href="usbc__device_8h.html#a8b172bafee7421956c3d195b8c30da92">00297</a> <span class="preprocessor">#define  udd_disable_endpoint_interrupt(ep)        (AVR32_USBC.udinteclr = AVR32_USBC_UDINTECLR_EP0INTEC_MASK &lt;&lt; (ep))</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span>
<a name="l00299"></a><a class="code" href="usbc__device_8h.html#a9b246cff0fb38d50d154b1e56dbd95fc">00299</a> <span class="preprocessor">#define  Is_udd_endpoint_interrupt_enabled(ep)     (Tst_bits(AVR32_USBC.udinte, AVR32_USBC_UDINTE_EP0INTE_MASK &lt;&lt; (ep)))</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span>
<a name="l00301"></a><a class="code" href="usbc__device_8h.html#aa12b636c365b3590aaab1685f5051e9d">00301</a> <span class="preprocessor">#define  Is_udd_endpoint_interrupt(ep)             (Tst_bits(AVR32_USBC.udint, AVR32_USBC_UDINT_EP0INT_MASK &lt;&lt; (ep)))</span>
<a name="l00302"></a>00302 <span class="preprocessor"></span>
<a name="l00303"></a><a class="code" href="usbc__device_8h.html#a2626b75423f2c54799bbeaf2c1fc816f">00303</a> <span class="preprocessor">#define  udd_get_interrupt_endpoint_number()       (ctz(((AVR32_USBC.udint &gt;&gt; AVR32_USBC_UDINT_EP0INT_OFFSET) &amp;\</span>
<a name="l00304"></a>00304 <span class="preprocessor">                                                   (AVR32_USBC.udinte &gt;&gt; AVR32_USBC_UDINTE_EP0INTE_OFFSET)) |\</span>
<a name="l00305"></a>00305 <span class="preprocessor">                                                   (1 &lt;&lt; MAX_PEP_NB)))</span>
<a name="l00306"></a>00306 <span class="preprocessor"></span>
<a name="l00307"></a>00307 
<a name="l00312"></a><a class="code" href="usbc__device_8h.html#a53559e240871eefce5727db759814f67">00312</a> <span class="preprocessor">#define  udd_enable_stall_handshake(ep)            (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_STALLRQS_MASK)</span>
<a name="l00313"></a>00313 <span class="preprocessor"></span>
<a name="l00314"></a><a class="code" href="usbc__device_8h.html#ab3ba0a5c25072f412af76337a9f78b49">00314</a> <span class="preprocessor">#define  udd_disable_stall_handshake(ep)           (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_STALLRQC_MASK)</span>
<a name="l00315"></a>00315 <span class="preprocessor"></span>
<a name="l00316"></a><a class="code" href="usbc__device_8h.html#aa00f503d09cc11156d7bcd275316fcc2">00316</a> <span class="preprocessor">#define  Is_udd_endpoint_stall_requested(ep)       (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_STALLRQ_MASK))</span>
<a name="l00317"></a>00317 <span class="preprocessor"></span>
<a name="l00318"></a><a class="code" href="usbc__device_8h.html#aa8f1423774570cc453649c43adffcde9">00318</a> <span class="preprocessor">#define  Is_udd_stall(ep)                          (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_STALLEDI_MASK))</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span>
<a name="l00320"></a><a class="code" href="usbc__device_8h.html#a80549eb8ff7c759ce3a0616ca2ff4e9a">00320</a> <span class="preprocessor">#define  udd_ack_stall(ep)                         (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_STALLEDIC_MASK)</span>
<a name="l00321"></a>00321 <span class="preprocessor"></span>
<a name="l00322"></a><a class="code" href="usbc__device_8h.html#a18f2dcfdb7e62260eed0568dd4aae35e">00322</a> <span class="preprocessor">#define  udd_raise_stall(ep)                       (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_STALLEDIS_MASK)</span>
<a name="l00323"></a>00323 <span class="preprocessor"></span>
<a name="l00324"></a><a class="code" href="usbc__device_8h.html#a5d4273d7708a52f01c6c25ce1159d753">00324</a> <span class="preprocessor">#define  udd_enable_stall_interrupt(ep)            (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_STALLEDES_MASK)</span>
<a name="l00325"></a>00325 <span class="preprocessor"></span>
<a name="l00326"></a><a class="code" href="usbc__device_8h.html#a7fec1c00b97a76215582b9245675a16f">00326</a> <span class="preprocessor">#define  udd_disable_stall_interrupt(ep)           (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_STALLEDEC_MASK)</span>
<a name="l00327"></a>00327 <span class="preprocessor"></span>
<a name="l00328"></a><a class="code" href="usbc__device_8h.html#a328c29b9b3f54284bd7e2da8648e929c">00328</a> <span class="preprocessor">#define  Is_udd_stall_interrupt_enabled(ep)        (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_STALLEDE_MASK))</span>
<a name="l00329"></a>00329 <span class="preprocessor"></span>
<a name="l00331"></a><a class="code" href="usbc__device_8h.html#a7a9485a3763e6f605fbe0d699eb769e0">00331</a> <span class="preprocessor">#define  Is_udd_ram_access_error(ep)               (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_RAMACCERI_MASK))</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span>
<a name="l00334"></a><a class="code" href="usbc__device_8h.html#aa662342744f36999b1e7f7b427e421e6">00334</a> <span class="preprocessor">#define  Is_udd_nak_out(ep)                        (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_NAKOUTI_MASK))</span>
<a name="l00335"></a>00335 <span class="preprocessor"></span>
<a name="l00336"></a><a class="code" href="usbc__device_8h.html#a9a6aad5b3ec3f719a107a804c1c6157f">00336</a> <span class="preprocessor">#define  udd_ack_nak_out(ep)                       (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_NAKOUTIC_MASK)</span>
<a name="l00337"></a>00337 <span class="preprocessor"></span>
<a name="l00338"></a><a class="code" href="usbc__device_8h.html#a04078a2d8249cf03c22ffad483e3e7dc">00338</a> <span class="preprocessor">#define  udd_raise_nak_out(ep)                     (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_NAKOUTIS_MASK)</span>
<a name="l00339"></a>00339 <span class="preprocessor"></span>
<a name="l00340"></a><a class="code" href="usbc__device_8h.html#a5b4d46dfc6148b45b9505c33ed3133e9">00340</a> <span class="preprocessor">#define  udd_enable_nak_out_interrupt(ep)          (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_NAKOUTES_MASK)</span>
<a name="l00341"></a>00341 <span class="preprocessor"></span>
<a name="l00342"></a><a class="code" href="usbc__device_8h.html#afebfb5c623a09ce5a760ac43ba54a583">00342</a> <span class="preprocessor">#define  udd_disable_nak_out_interrupt(ep)         (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_NAKOUTEC_MASK)</span>
<a name="l00343"></a>00343 <span class="preprocessor"></span>
<a name="l00344"></a><a class="code" href="usbc__device_8h.html#aa556fab3c46354bde3d2cdd02da700d1">00344</a> <span class="preprocessor">#define  Is_udd_nak_out_interrupt_enabled(ep)      (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_NAKOUTE_MASK))</span>
<a name="l00345"></a>00345 <span class="preprocessor"></span>
<a name="l00347"></a><a class="code" href="usbc__device_8h.html#a058bc49fc189ef865fe226cfcea4020b">00347</a> <span class="preprocessor">#define  Is_udd_nak_in(ep)                         (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_NAKINI_MASK))</span>
<a name="l00348"></a>00348 <span class="preprocessor"></span>
<a name="l00349"></a><a class="code" href="usbc__device_8h.html#a9c7ff845a31408640d21ab1abe2a3ac3">00349</a> <span class="preprocessor">#define  udd_ack_nak_in(ep)                        (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_NAKINIC_MASK)</span>
<a name="l00350"></a>00350 <span class="preprocessor"></span>
<a name="l00351"></a><a class="code" href="usbc__device_8h.html#add81f92998f841a45c0bbe3d4f13c6fa">00351</a> <span class="preprocessor">#define  udd_raise_nak_in(ep)                      (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_NAKINIS_MASK)</span>
<a name="l00352"></a>00352 <span class="preprocessor"></span>
<a name="l00353"></a><a class="code" href="usbc__device_8h.html#adbc5e8ee2fe92c01b938b09d6cbee804">00353</a> <span class="preprocessor">#define  udd_enable_nak_in_interrupt(ep)           (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_NAKINES_MASK)</span>
<a name="l00354"></a>00354 <span class="preprocessor"></span>
<a name="l00355"></a><a class="code" href="usbc__device_8h.html#a1f2beebb3753a3b3e86aaaf93cb8b958">00355</a> <span class="preprocessor">#define  udd_disable_nak_in_interrupt(ep)          (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_NAKINEC_MASK)</span>
<a name="l00356"></a>00356 <span class="preprocessor"></span>
<a name="l00357"></a><a class="code" href="usbc__device_8h.html#a21d072c549f508c0bfa11877325ec6ca">00357</a> <span class="preprocessor">#define  Is_udd_nak_in_interrupt_enabled(ep)       (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_NAKINE_MASK))</span>
<a name="l00358"></a>00358 <span class="preprocessor"></span>
<a name="l00360"></a><a class="code" href="usbc__device_8h.html#a989c61a1ef03a3821e17a66a6ca47801">00360</a> <span class="preprocessor">#define  udd_ack_overflow_interrupt(ep)            (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_OVERFIC_MASK)</span>
<a name="l00361"></a>00361 <span class="preprocessor"></span>
<a name="l00362"></a><a class="code" href="usbc__device_8h.html#a1f5a81edfbab51799c3a60c2a24e14c8">00362</a> <span class="preprocessor">#define  udd_raise_overflow_interrupt(ep)          (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_OVERFIS_MASK)</span>
<a name="l00363"></a>00363 <span class="preprocessor"></span>
<a name="l00364"></a><a class="code" href="usbc__device_8h.html#a19a8109ed558b53a6c163ad4a1625ba1">00364</a> <span class="preprocessor">#define  Is_udd_overflow(ep)                       (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_OVERFI_MASK))</span>
<a name="l00365"></a>00365 <span class="preprocessor"></span>
<a name="l00366"></a><a class="code" href="usbc__device_8h.html#a7ef25a39e90ff903696c0c6b0cf4b573">00366</a> <span class="preprocessor">#define  udd_enable_overflow_interrupt(ep)         (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_OVERFES_MASK)</span>
<a name="l00367"></a>00367 <span class="preprocessor"></span>
<a name="l00368"></a><a class="code" href="usbc__device_8h.html#aaae544aa935567496d6195ed4cd71ccc">00368</a> <span class="preprocessor">#define  udd_disable_overflow_interrupt(ep)        (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_OVERFEC_MASK)</span>
<a name="l00369"></a>00369 <span class="preprocessor"></span>
<a name="l00370"></a><a class="code" href="usbc__device_8h.html#a0eea027a8784874c6d9176c228d0bcfd">00370</a> <span class="preprocessor">#define  Is_udd_overflow_interrupt_enabled(ep)     (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_OVERFE_MASK))</span>
<a name="l00371"></a>00371 <span class="preprocessor"></span>
<a name="l00373"></a><a class="code" href="usbc__device_8h.html#adbe43b87bdd82e175d8dd4a70022f77d">00373</a> <span class="preprocessor">#define  udd_ack_underflow_interrupt(ep)           (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_UNDERFIC_MASK)</span>
<a name="l00374"></a>00374 <span class="preprocessor"></span>
<a name="l00375"></a><a class="code" href="usbc__device_8h.html#ac62a73b450f839afd0fa9373a20b6572">00375</a> <span class="preprocessor">#define  udd_raise_underflow_interrupt(ep)         (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_UNDERFIS_MASK)</span>
<a name="l00376"></a>00376 <span class="preprocessor"></span>
<a name="l00377"></a><a class="code" href="usbc__device_8h.html#a69cf9244b156e14a178ba1413f3efbc8">00377</a> <span class="preprocessor">#define  Is_udd_underflow(ep)                      (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_UNDERFI_MASK))</span>
<a name="l00378"></a>00378 <span class="preprocessor"></span>
<a name="l00379"></a><a class="code" href="usbc__device_8h.html#a5e6cd558da44828750e27cc78dba86e3">00379</a> <span class="preprocessor">#define  udd_enable_underflow_interrupt(ep)        (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_RXSTPES_MASK)</span>
<a name="l00380"></a>00380 <span class="preprocessor"></span>
<a name="l00381"></a><a class="code" href="usbc__device_8h.html#a9414bf12df2ab83c146e18db3c185771">00381</a> <span class="preprocessor">#define  udd_disable_underflow_interrupt(ep)       (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_RXSTPEC_MASK)</span>
<a name="l00382"></a>00382 <span class="preprocessor"></span>
<a name="l00383"></a><a class="code" href="usbc__device_8h.html#a162bf1796a65a0165303957fd2430970">00383</a> <span class="preprocessor">#define  Is_udd_underflow_interrupt_enabled(ep)    (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_RXSTPE_MASK))</span>
<a name="l00384"></a>00384 <span class="preprocessor"></span>
<a name="l00386"></a><a class="code" href="usbc__device_8h.html#ad6e25ea1e124ebe5ea9a6a9eb680b542">00386</a> <span class="preprocessor">#define  Is_udd_crc_error(ep)                      (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_STALLEDI_MASK))</span>
<a name="l00387"></a>00387 <span class="preprocessor"></span>
<a name="l00388"></a><a class="code" href="usbc__device_8h.html#a73241164f2b850d0a7e5a76f013c1922">00388</a> <span class="preprocessor">#define  udd_ack_crc_error(ep)                     (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_STALLEDIC_MASK)</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span>
<a name="l00390"></a><a class="code" href="usbc__device_8h.html#a09c5d13c3b160178e0a1f18f50cc435b">00390</a> <span class="preprocessor">#define  udd_raise_crc_error(ep)                   (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_STALLEDIS_MASK)</span>
<a name="l00391"></a>00391 <span class="preprocessor"></span>
<a name="l00392"></a><a class="code" href="usbc__device_8h.html#a4bcf4430699577add8b0470749897371">00392</a> <span class="preprocessor">#define  udd_enable_crc_error_interrupt(ep)        (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_STALLEDES_MASK)</span>
<a name="l00393"></a>00393 <span class="preprocessor"></span>
<a name="l00394"></a><a class="code" href="usbc__device_8h.html#a63e2a523826ed3ac39ffec2bf5e430d7">00394</a> <span class="preprocessor">#define  udd_disable_crc_error_interrupt(ep)       (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_STALLEDEC_MASK)</span>
<a name="l00395"></a>00395 <span class="preprocessor"></span>
<a name="l00396"></a><a class="code" href="usbc__device_8h.html#a0a42c1b5a4d7f8231ea015f5ce9e652c">00396</a> <span class="preprocessor">#define  Is_udd_crc_error_interrupt_enabled(ep)    (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_STALLEDE_MASK))</span>
<a name="l00397"></a>00397 <span class="preprocessor"></span>
<a name="l00398"></a>00398 
<a name="l00402"></a>00402 
<a name="l00404"></a>00404 <span class="comment">//#define  Is_udd_read_enabled(ep)                   (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_RWALL_MASK))</span>
<a name="l00406"></a>00406 <span class="comment"></span><span class="comment">//#define  Is_udd_write_enabled(ep)                  (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_RWALL_MASK))</span>
<a name="l00407"></a>00407 
<a name="l00409"></a><a class="code" href="usbc__device_8h.html#ac70a8020e42c03943b2e5cb247be6a27">00409</a> <span class="preprocessor">#define  udd_ack_fifocon(ep)                       (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_FIFOCONC_MASK)</span>
<a name="l00410"></a>00410 <span class="preprocessor"></span>
<a name="l00411"></a><a class="code" href="usbc__device_8h.html#a9b7eb71e23cbc004ff5e14d1b89ed5b5">00411</a> <span class="preprocessor">#define  Is_udd_fifocon(ep)                        (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_FIFOCON_MASK))</span>
<a name="l00412"></a>00412 <span class="preprocessor"></span>
<a name="l00414"></a><a class="code" href="usbc__device_8h.html#aedfa79f446bab64bee7ba639045cae3f">00414</a> <span class="preprocessor">#define  udd_disable_nyet(ep)                      (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_NYETDISS_MASK)</span>
<a name="l00415"></a>00415 <span class="preprocessor"></span>
<a name="l00416"></a><a class="code" href="usbc__device_8h.html#a19f3613c3c1aa1603c4c9f3e932be408">00416</a> <span class="preprocessor">#define  udd_enable_nyet(ep)                       (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_NYETDISC_MASK)</span>
<a name="l00417"></a>00417 <span class="preprocessor"></span>
<a name="l00419"></a><a class="code" href="usbc__device_8h.html#a7808ee92bc219ec6bc161749fd8d8848">00419</a> <span class="preprocessor">#define  udd_enable_busy_bank0(ep)                 (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_BUSY0S_MASK)</span>
<a name="l00420"></a>00420 <span class="preprocessor"></span>
<a name="l00421"></a><a class="code" href="usbc__device_8h.html#ae00d2879deb19a5b70b0c1bf0cbabc2e">00421</a> <span class="preprocessor">#define  udd_disable_busy_bank0(ep)                (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_BUSY0C_MASK)</span>
<a name="l00422"></a>00422 <span class="preprocessor"></span>
<a name="l00423"></a><a class="code" href="usbc__device_8h.html#a9f195135bbeaa0aceb54dada54387a46">00423</a> <span class="preprocessor">#define  udd_enable_busy_bank1(ep)                 (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_BUSY1S_MASK)</span>
<a name="l00424"></a>00424 <span class="preprocessor"></span>
<a name="l00425"></a><a class="code" href="usbc__device_8h.html#a0e41b2c169fc026153b7be55266b5966">00425</a> <span class="preprocessor">#define  udd_disable_busy_bank1(ep)                (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_BUSY1C_MASK)</span>
<a name="l00426"></a>00426 <span class="preprocessor"></span>
<a name="l00428"></a><a class="code" href="usbc__device_8h.html#a5c6d18d773abb7af0c1aa987006d7f86">00428</a> <span class="preprocessor">#define  udd_nb_busy_bank(ep)                      (Rd_bitfield(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_NBUSYBK_MASK))</span>
<a name="l00429"></a>00429 <span class="preprocessor"></span>
<a name="l00430"></a><a class="code" href="usbc__device_8h.html#add031c6e7450e25a69b04416514d7696">00430</a> <span class="preprocessor">#define  udd_current_bank(ep)                      (Rd_bitfield(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_CURRBK_MASK))</span>
<a name="l00431"></a>00431 <span class="preprocessor"></span>
<a name="l00433"></a><a class="code" href="usbc__device_8h.html#a21f6ff4bffcd208971419ac13427bc61">00433</a> <span class="preprocessor">#define  udd_kill_last_in_bank(ep)                 (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_KILLBKS_MASK)</span>
<a name="l00434"></a>00434 <span class="preprocessor"></span>
<a name="l00435"></a><a class="code" href="usbc__device_8h.html#a4de9e6f0520cb387d2db1bd71c91762b">00435</a> <span class="preprocessor">#define  Is_udd_last_in_bank_killed(ep)            (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_KILLBK_MASK))</span>
<a name="l00436"></a>00436 <span class="preprocessor"></span>
<a name="l00437"></a><a class="code" href="usbc__device_8h.html#a64b05771e325d90e9ff6497a84c35e62">00437</a> <span class="preprocessor">#define  udd_force_bank_interrupt(ep)              (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_NBUSYBKS_MASK)</span>
<a name="l00438"></a>00438 <span class="preprocessor"></span>
<a name="l00439"></a><a class="code" href="usbc__device_8h.html#aa522e5e1d2f1d10c0e594b45cf7b8497">00439</a> <span class="preprocessor">#define  udd_unforce_bank_interrupt(ep)            (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_NBUSYBKS_MASK)</span>
<a name="l00440"></a>00440 <span class="preprocessor"></span>
<a name="l00441"></a><a class="code" href="usbc__device_8h.html#affdee8df03c3087459da437f64409de1">00441</a> <span class="preprocessor">#define  udd_enable_bank_interrupt(ep)             (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_NBUSYBKES_MASK)</span>
<a name="l00442"></a>00442 <span class="preprocessor"></span>
<a name="l00443"></a><a class="code" href="usbc__device_8h.html#af9b9ee869302039a5a8e97186579eaaf">00443</a> <span class="preprocessor">#define  udd_disable_bank_interrupt(ep)            (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_NBUSYBKEC_MASK)</span>
<a name="l00444"></a>00444 <span class="preprocessor"></span>
<a name="l00445"></a><a class="code" href="usbc__device_8h.html#a6008ad2528d55b1830466e59e37ebc3a">00445</a> <span class="preprocessor">#define  Is_udd_bank_interrupt_enabled(ep)         (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_NBUSYBKE_MASK))</span>
<a name="l00446"></a>00446 <span class="preprocessor"></span>
<a name="l00448"></a><a class="code" href="usbc__device_8h.html#a329b1cde520fa81858ee360533d760c0">00448</a> <span class="preprocessor">#define  Is_udd_short_packet(ep)                   (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_SHORTPACKETI_MASK))</span>
<a name="l00449"></a>00449 <span class="preprocessor"></span>
<a name="l00450"></a><a class="code" href="usbc__device_8h.html#a583fd943c8a96f8561887cd996d6c05f">00450</a> <span class="preprocessor">#define  udd_ack_short_packet(ep)                  (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_SHORTPACKETIC_MASK)</span>
<a name="l00451"></a>00451 <span class="preprocessor"></span>
<a name="l00452"></a><a class="code" href="usbc__device_8h.html#ac795af3e94f1202e6aab7b149632ab90">00452</a> <span class="preprocessor">#define  udd_raise_short_packet(ep)                (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_SHORTPACKETIS_MASK)</span>
<a name="l00453"></a>00453 <span class="preprocessor"></span>
<a name="l00454"></a><a class="code" href="usbc__device_8h.html#a535f35b986fc195eb6a014cf9cfa8204">00454</a> <span class="preprocessor">#define  udd_enable_short_packet_interrupt(ep)     (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_SHORTPACKETES_MASK)</span>
<a name="l00455"></a>00455 <span class="preprocessor"></span>
<a name="l00456"></a><a class="code" href="usbc__device_8h.html#a5d5276a39a695e7fc7c72bd6dc68ba4d">00456</a> <span class="preprocessor">#define  udd_disable_short_packet_interrupt(ep)    (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_SHORTPACKETEC_MASK)</span>
<a name="l00457"></a>00457 <span class="preprocessor"></span>
<a name="l00458"></a><a class="code" href="usbc__device_8h.html#a4fb8e430cbdb750273e87a48b7e544c5">00458</a> <span class="preprocessor">#define  Is_udd_short_packet_interrupt_enabled(ep) (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_SHORTPACKETE_MASK))</span>
<a name="l00459"></a>00459 <span class="preprocessor"></span>
<a name="l00461"></a>00461 
<a name="l00465"></a>00465 
<a name="l00467"></a><a class="code" href="usbc__device_8h.html#a35421aaff45c60a7174d7082db2941f4">00467</a> <span class="preprocessor">#define  Is_udd_setup_received(ep)                    (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_RXSTPI_MASK))</span>
<a name="l00468"></a>00468 <span class="preprocessor"></span>
<a name="l00469"></a><a class="code" href="usbc__device_8h.html#abf07f0798c3538c4306af26f1eb9ce2b">00469</a> <span class="preprocessor">#define  udd_ack_setup_received(ep)                   ((USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_RXSTPIC_MASK))</span>
<a name="l00470"></a>00470 <span class="preprocessor"></span>
<a name="l00471"></a><a class="code" href="usbc__device_8h.html#a832e9941b31f7d7ba52cc0a2eb31e848">00471</a> <span class="preprocessor">#define  udd_raise_setup_received(ep)                 (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_RXSTPIS_MASK)</span>
<a name="l00472"></a>00472 <span class="preprocessor"></span>
<a name="l00473"></a><a class="code" href="usbc__device_8h.html#ad50aa9e7b28504019f64a660d20d5160">00473</a> <span class="preprocessor">#define  udd_enable_setup_received_interrupt(ep)      (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_RXSTPES_MASK)</span>
<a name="l00474"></a>00474 <span class="preprocessor"></span>
<a name="l00475"></a><a class="code" href="usbc__device_8h.html#a668c58ec343f368da78ec9f15cae7373">00475</a> <span class="preprocessor">#define  udd_disable_setup_received_interrupt()       (USBC_ARRAY(uecon0clr(EP_CONTROL) = AVR32_USBC_UECON0CLR_RXSTPEC_MASK)</span>
<a name="l00476"></a>00476 <span class="preprocessor"></span>
<a name="l00477"></a><a class="code" href="usbc__device_8h.html#a4b4e77c5697efedbaa6ccef4f86dafcd">00477</a> <span class="preprocessor">#define  Is_udd_setup_received_interrupt_enabled(ep)  (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_RXSTPE_MASK))</span>
<a name="l00478"></a>00478 <span class="preprocessor"></span>
<a name="l00480"></a><a class="code" href="usbc__device_8h.html#a096c5fa1b85a21a8509f060f8dd6760c">00480</a> <span class="preprocessor">#define  Is_udd_out_received(ep)                   (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_RXOUTI_MASK))</span>
<a name="l00481"></a>00481 <span class="preprocessor"></span>
<a name="l00482"></a><a class="code" href="usbc__device_8h.html#a155aeea7bacc9d819976155da32ea20c">00482</a> <span class="preprocessor">#define  udd_ack_out_received(ep)                  ((USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_RXOUTIC_MASK))</span>
<a name="l00483"></a>00483 <span class="preprocessor"></span>
<a name="l00484"></a><a class="code" href="usbc__device_8h.html#a8aa1844030b75833ccab407a93f23c5b">00484</a> <span class="preprocessor">#define  udd_raise_out_received(ep)                (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_RXOUTIS_MASK)</span>
<a name="l00485"></a>00485 <span class="preprocessor"></span>
<a name="l00486"></a><a class="code" href="usbc__device_8h.html#ad2d31f9be235d1f0b61a92914caec150">00486</a> <span class="preprocessor">#define  udd_enable_out_received_interrupt(ep)     (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_RXOUTES_MASK)</span>
<a name="l00487"></a>00487 <span class="preprocessor"></span>
<a name="l00488"></a><a class="code" href="usbc__device_8h.html#acbef1c0e893909b48f08f369f5c2101e">00488</a> <span class="preprocessor">#define  udd_disable_out_received_interrupt(ep)    (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_RXOUTEC_MASK)</span>
<a name="l00489"></a>00489 <span class="preprocessor"></span>
<a name="l00490"></a><a class="code" href="usbc__device_8h.html#af91e68106149ba73e0e7a597d2f1f0e7">00490</a> <span class="preprocessor">#define  Is_udd_out_received_interrupt_enabled(ep) (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_RXOUTE_MASK))</span>
<a name="l00491"></a>00491 <span class="preprocessor"></span>
<a name="l00493"></a><a class="code" href="usbc__device_8h.html#aeda1e279c304f18c0e96827e41da9d86">00493</a> <span class="preprocessor">#define  Is_udd_in_send(ep)                        (Tst_bits(USBC_ARRAY(uesta0,ep), AVR32_USBC_UESTA0_TXINI_MASK))</span>
<a name="l00494"></a>00494 <span class="preprocessor"></span>
<a name="l00495"></a>00495 <span class="comment">//#define  udd_ack_in_send(ep)                       ((USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_TXINIC_MASK), Usb_set_desc_tab_ept_byte_cnt(ep, udd_current_bank(ep), 0))</span>
<a name="l00496"></a><a class="code" href="usbc__device_8h.html#a11eb4dd0bf6c6694f1dccb3677d4b243">00496</a> <span class="preprocessor">#define  udd_ack_in_send(ep)                       (USBC_ARRAY(uesta0clr,ep) = AVR32_USBC_UESTA0CLR_TXINIC_MASK)</span>
<a name="l00497"></a>00497 <span class="preprocessor"></span>
<a name="l00498"></a><a class="code" href="usbc__device_8h.html#afb1d0b8c2a38cbbece773c60206982a3">00498</a> <span class="preprocessor">#define  udd_raise_in_send(ep)                     (USBC_ARRAY(uesta0set,ep) = AVR32_USBC_UESTA0SET_TXINIS_MASK)</span>
<a name="l00499"></a>00499 <span class="preprocessor"></span>
<a name="l00500"></a><a class="code" href="usbc__device_8h.html#ae93fcd4e4efec3740ac5e4f97bda5603">00500</a> <span class="preprocessor">#define  udd_enable_in_send_interrupt(ep)          (USBC_ARRAY(uecon0set,ep) = AVR32_USBC_UECON0SET_TXINES_MASK)</span>
<a name="l00501"></a>00501 <span class="preprocessor"></span>
<a name="l00502"></a><a class="code" href="usbc__device_8h.html#a68bc029dbdcb3e938af79d00cad2ada6">00502</a> <span class="preprocessor">#define  udd_disable_in_send_interrupt(ep)         (USBC_ARRAY(uecon0clr,ep) = AVR32_USBC_UECON0CLR_TXINEC_MASK)</span>
<a name="l00503"></a>00503 <span class="preprocessor"></span>
<a name="l00504"></a><a class="code" href="usbc__device_8h.html#ae4f86fc4a54e34216fd1defe06aca408">00504</a> <span class="preprocessor">#define  Is_udd_in_send_interrupt_enabled(ep)      (Tst_bits(USBC_ARRAY(uecon0,ep), AVR32_USBC_UECON0_TXINE_MASK))</span>
<a name="l00505"></a>00505 <span class="preprocessor"></span>
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 
<a name="l00510"></a>00510 
<a name="l00511"></a><a class="code" href="usbc__device_8h.html#a18bc2b2f31d1aa60873c324c03a2dd2a">00511</a> <span class="preprocessor">#define udd_udesc_set_buf0_addr(ep,buf)                \</span>
<a name="l00512"></a>00512 <span class="preprocessor">   udd_g_ep_table[ep*2].endpoint_pipe_address = buf</span>
<a name="l00513"></a><a class="code" href="usbc__device_8h.html#a1b918dae2ab647e3ca3139e3fa1bd835">00513</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_rst_buf0_size(ep)                    \</span>
<a name="l00514"></a>00514 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.multi_packet_size = 0</span>
<a name="l00515"></a><a class="code" href="usbc__device_8h.html#a0c540ab90d24659e8fb8646b6341c1d4">00515</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_get_buf0_size(ep)                    \</span>
<a name="l00516"></a>00516 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.multi_packet_size</span>
<a name="l00517"></a><a class="code" href="usbc__device_8h.html#a3c3cec924aa661853b77c7bfa217f5f8">00517</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_set_buf0_size(ep,size)               \</span>
<a name="l00518"></a>00518 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.multi_packet_size = size</span>
<a name="l00519"></a><a class="code" href="usbc__device_8h.html#a3d1c7b214972a5b48448d63174913a0c">00519</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_rst_buf0_ctn(ep)                     \</span>
<a name="l00520"></a>00520 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.byte_count = 0</span>
<a name="l00521"></a><a class="code" href="usbc__device_8h.html#a36dbb0f364c02ce1f3e8606063278824">00521</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_get_buf0_ctn(ep)                     \</span>
<a name="l00522"></a>00522 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.byte_count</span>
<a name="l00523"></a><a class="code" href="usbc__device_8h.html#a33dbd2726ba58e81114c5a025548e479">00523</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_set_buf0_ctn(ep,size)                \</span>
<a name="l00524"></a>00524 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.byte_count = size</span>
<a name="l00525"></a><a class="code" href="usbc__device_8h.html#adf40824e97da4c3c7cc651427bd2370c">00525</a> <span class="preprocessor"></span><span class="preprocessor">#define udd_udesc_set_buf0_autozlp(ep,val)             \</span>
<a name="l00526"></a>00526 <span class="preprocessor">   udd_g_ep_table[ep*2].SIZES.auto_zlp = val</span>
<a name="l00527"></a>00527 <span class="preprocessor"></span>
<a name="l00528"></a>00528 
<a name="l00529"></a><a class="code" href="usbc__device_8h.html#add60165f4e021c5e08c9b647e65496c8">00529</a> <span class="preprocessor">#define Usb_set_desc_tab_addr_reg(addr) (Wr_bitfield(AVR32_USBC.udesc, AVR32_USBC_UDESC_MASK, addr))</span>
<a name="l00530"></a>00530 <span class="preprocessor"></span>
<a name="l00531"></a><a class="code" href="structavr32__usbc__udesc__sizes__t.html">00531</a> <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__sizes__t.html">avr32_usbc_udesc_sizes_t</a> {
<a name="l00532"></a><a class="code" href="structavr32__usbc__udesc__sizes__t.html#aa8c8fab669dcb353291171bc2a1ec2c1">00532</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__sizes__t.html#aa8c8fab669dcb353291171bc2a1ec2c1">auto_zlp</a>:1;
<a name="l00533"></a><a class="code" href="structavr32__usbc__udesc__sizes__t.html#ae026c9f636627d65b351846c0068a916">00533</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__sizes__t.html#ae026c9f636627d65b351846c0068a916">multi_packet_size</a>:15;
<a name="l00534"></a><a class="code" href="structavr32__usbc__udesc__sizes__t.html#aee49c3bdbca6c637246f1ae3f605ea9e">00534</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__sizes__t.html#aee49c3bdbca6c637246f1ae3f605ea9e">res</a>:1;
<a name="l00535"></a><a class="code" href="structavr32__usbc__udesc__sizes__t.html#aa8eaa8ddccbedd07f1ea52402e9926cc">00535</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__sizes__t.html#aa8eaa8ddccbedd07f1ea52402e9926cc">byte_count</a>:15;
<a name="l00536"></a>00536 };
<a name="l00537"></a>00537 
<a name="l00538"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html">00538</a> <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html">avr32_usbc_udesc_bk_ctrl_stat_t</a> {
<a name="l00539"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a3d09be99f8d069542586bf81ea98a45b">00539</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a3d09be99f8d069542586bf81ea98a45b">res</a>:13;
<a name="l00540"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a5a09d844a7cced23f3bc9607f414d267">00540</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a5a09d844a7cced23f3bc9607f414d267">underfi</a>:1;
<a name="l00541"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a4d24b3e71d0b40287ca916bca77cb1f7">00541</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#a4d24b3e71d0b40287ca916bca77cb1f7">overfi</a>:1;
<a name="l00542"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#ae6a25445fe0f4482ec649c9b06750aac">00542</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#ae6a25445fe0f4482ec649c9b06750aac">crc</a>:1;
<a name="l00543"></a><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#ac9ad59edfb63670572be4e0d095f15f7">00543</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html#ac9ad59edfb63670572be4e0d095f15f7">res2</a>:16;
<a name="l00544"></a>00544 };
<a name="l00545"></a>00545 
<a name="l00546"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html">00546</a> <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html">avr32_usbc_udesc_ep_ctrl_stat_t</a> {
<a name="l00547"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a834d36229bda069c7d36504f45bd917b">00547</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a834d36229bda069c7d36504f45bd917b">res</a>:8;
<a name="l00548"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#ace686bb729b57a30131cd73b536ece96">00548</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#ace686bb729b57a30131cd73b536ece96">pipe_error_status</a>:8;
<a name="l00549"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a217e487a51330e6afddb89c97a91107f">00549</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a217e487a51330e6afddb89c97a91107f">pipe_error_number_max</a>:4;
<a name="l00550"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a57b72d8cc46507cd1494c87c48234470">00550</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a57b72d8cc46507cd1494c87c48234470">pep_num</a>:4;
<a name="l00551"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#af88c1fe164150c905432dc87aa03d84a">00551</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#af88c1fe164150c905432dc87aa03d84a">res2</a>:1;
<a name="l00552"></a><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a22eed9d1aca4da507f8927d8db4f73fe">00552</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html#a22eed9d1aca4da507f8927d8db4f73fe">uhaddr</a>:7;
<a name="l00553"></a>00553 };
<a name="l00554"></a>00554 
<a name="l00555"></a><a class="code" href="structusb__desc__table__t.html">00555</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00556"></a><a class="code" href="structusb__desc__table__t.html#adf984d475f5ef6e64d92d73e06dd0505">00556</a>         uint8_t *<a class="code" href="structusb__desc__table__t.html#adf984d475f5ef6e64d92d73e06dd0505">endpoint_pipe_address</a>;
<a name="l00557"></a>00557         <span class="keyword">union </span>{
<a name="l00558"></a><a class="code" href="structusb__desc__table__t.html#ab8b9283572e5ec57f77e303040f50a5b">00558</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structusb__desc__table__t.html#ab8b9283572e5ec57f77e303040f50a5b">sizes</a>;
<a name="l00559"></a><a class="code" href="structusb__desc__table__t.html#a398c066ef26d68b2e4e7c699713d3aa3">00559</a>                 <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__sizes__t.html">avr32_usbc_udesc_sizes_t</a> SIZES;
<a name="l00560"></a>00560         };
<a name="l00561"></a>00561         <span class="keyword">union </span>{
<a name="l00562"></a><a class="code" href="structusb__desc__table__t.html#a923739f1e7b42d66f71ac7a45e082245">00562</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structusb__desc__table__t.html#a923739f1e7b42d66f71ac7a45e082245">bk_ctrl_stat</a>;
<a name="l00563"></a><a class="code" href="structusb__desc__table__t.html#a6dad4df05ca7e1703d69b9a47a77122d">00563</a>                 <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__bk__ctrl__stat__t.html">avr32_usbc_udesc_bk_ctrl_stat_t</a> BK_CTRL_STAT;
<a name="l00564"></a>00564         };
<a name="l00565"></a>00565         <span class="keyword">union </span>{
<a name="l00566"></a><a class="code" href="structusb__desc__table__t.html#a268ebfaba41abcb12540d375f78931c4">00566</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structusb__desc__table__t.html#a268ebfaba41abcb12540d375f78931c4">ep_ctrl_stat</a>;
<a name="l00567"></a><a class="code" href="structusb__desc__table__t.html#a7d436bbfb39d6031f2a8a10030b81529">00567</a>                 <span class="keyword">struct </span><a class="code" href="structavr32__usbc__udesc__ep__ctrl__stat__t.html">avr32_usbc_udesc_ep_ctrl_stat_t</a> EP_CTRL_STAT;
<a name="l00568"></a>00568         };
<a name="l00569"></a>00569 } <a class="code" href="structusb__desc__table__t.html">usb_desc_table_t</a>;
<a name="l00570"></a>00570 
<a name="l00572"></a>00572 
<a name="l00576"></a>00576 
<a name="l00577"></a>00577 <span class="preprocessor">#endif // _USBC_DEVICE_H_</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:52 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
